<?php
!defined('DEBUG') AND exit('Access Denied.');

$action = param(1);

if ($action == 'review') {
	# code...
} else {

	if ($method == 'GET') {
		$verifiedlist = verified_read_all(0);

		include _include(ADMIN_PATH . "view/htm/verified_list.htm");
	} elseif ($method == 'POST') {
		$vid = param('vid', 0);
		$type = param('type', 'null');

		if ($vid == 0) {
			message(-1, "非法操作：vid");
		}

		if ($type == 'null') {
			message(-1, "非法操作:type");
		}

		if ($type == 'tg') {
			verified_review($vid, 1);
			message(0, '审核成功');
		} elseif ($type == 'jj') {
			verified_review($vid, -1);
			message(0, '拒绝成功');
		}
	}
}

?>